package com.ruoyi.logCen.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.logCen.service.GeneralService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/testCon/general")
public class GeneralController extends BaseController {

    @Resource
    private GeneralService generalService;


    @GetMapping("/testNextSeq")
    public AjaxResult testNextSeq(@RequestParam("seqName") String seqName){
        Map<String, Object> nextSeq = generalService.getNextSeq(seqName);
        return AjaxResult.success(nextSeq.get("currentVal").toString());
    }




}
